package com.travel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.travel.entity.TbGateOrder;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

public interface GateOrderMapper extends BaseMapper<TbGateOrder> {

    @Insert("insert into tb_gate_order values(#{gateOrderid},#{userId},#{gateCreateTime},#{gateStatus},#{viewName},#{gateTotal})")
    int insets(TbGateOrder tbGateOrder);

    @Update("update tb_gate_order set gate_status=#{gateStatus} where gate_orderid = #{gateOrderid}")
    int updateStatus(TbGateOrder order);
}
